<?php
header('content-type:text/html;charset=utf-8');
$sjh = $_POST['v'];
$din = "mysql:host=127.0.0.1;dbname=zgr";
$name = "root";
$password = "root";
$pdo = new PDO($din,$name,$password);
$res = $pdo->query("select * from lx8_may where sjh='$sjh' ")->fetch(PDO::FETCH_ASSOC);
if($res)
{
    echo $res['uname'];
}
else
{
    echo 'no';
}


?>




